public class Main {
    public static void main(String[] args) {
       Role[] roles = {new TangSeng(),new WuKong(),new WuNeng()};

       Visitor visitor = new Tourist();

       for(Role role : roles){
           role.accept(visitor);
       }
    }
}